package com.bird.pro.wechat;

import javax.servlet.http.HttpSession;

import com.bird.pro.pojo.BirdUser;

public class WechatBase {
	
	public BirdUser getUserInfo(HttpSession session) {
		return (BirdUser) session.getAttribute("wechatUser");
	}
	
	public String getOpenId(HttpSession session) {
		return (String)session.getAttribute("wechatOpenId");
	}
	

	public void setUserInfo(HttpSession session, BirdUser user){
		session.setAttribute("wechatUser", user);
	}
	
	public void setOpenId(HttpSession session, String openId){
		session.setAttribute("wechatOpenId", openId);
	}
	
}
